<div class="wrap">
{if $smarty.cookies.message != NULL}
	<div id="ajaxResponse1" class="ajaxResponse" style="display:block">{$smarty.cookies.message}</div>
{/if}
<h2>
	{if isset($smarty.get.subcat)}
 		Untermen&uuml; des Obermen&uuml;s "{$PARENT_NAME}" editieren</h2>  		
 	{else}
		Obermen&uuml; editieren
</h2>	
	{/if}
<form enctype="multipart/form-data" name="editcat" id="editcat" method="post" action="?{$smarty.server.QUERY_STRING}">
	<input type="hidden" name="act" value="editcat" />
	<input type="hidden" name="cat_id" value="{$smarty.get.id}" />
    <input type="hidden" name="cat_parent" value="{$smarty.get.catid}" />
	<table class="editform" width="100%" cellspacing="2" cellpadding="5">
		<tr>
			<th width="33%" scope="row" valign="top">
			<label for="cat_name">{TranslateTag}B_LABEL_NAME{/TranslateTag}:</label></th>
			<td width="67%">
			<input name="cat_name" id="cat_name" type="text" value="{$THECATONE->cat_name}" size="40" /></td>
		</tr>
{if $SETLEFTMENU != "0"}
        {if !isset($smarty.get.catid)}
        <tr>
			<th width="33%" scope="row" valign="middle">
			<label for="cat_name">Choose Widget:</label></th>
			<td width="67%">
				<select name="widget_id">
                	<option value="0">None</option>
                	{foreach name=widget from=$WIDGET item=item}
                    	<option value="{$item->widget_id}"{if $item->widget_id eq $THECATONE->widget_id}selected="selected"{/if}>{$item->widget_name}</option>
                    {/foreach}
                </select>
            </td>
		</tr>
        {/if}
{/if}
        <tr>
			<th width="33%" scope="row" valign="middle">
			<label for="language_name">Choose Language:</label></th>
			<td width="67%">
				<select name="language_id">
                	<option value="0">None</option>
                	{foreach name=language from=$LANGUAGE item=item}
                    	<option value="{$item->key_lang}"{if $item->key_lang eq $THECATONE->lang_id}selected="selected"{/if}>{$item->name_lang}</option>
                    {/foreach}
                </select>
            </td>
		</tr>
        {if $SETBANNER != "0"}
         <tr>
			<th width="33%" scope="row" valign="middle">
			<label for="cat_name">Set Banner :</label></th>
			<td width="67%">
				<input type="file" name="banner" style="width:99%;"/>(Size : 880 x 160 px)<br />
                {if $THECATONE->banner_path!=NULL}
                    	<img src="../view/X5/banner/{$THECATONE->banner_path}" width="150"  />
            	{/if}
            </td>
		</tr>
        {/if}
		<tr>
			<th scope="row" valign="top">
			<label for="cat_description">Beschreibung:</label></th>
			<td><textarea name="cat_description" id="cat_description" 
				rows="5" cols="50" style="width: 97%;">{$THECATONE->cat_description}</textarea></td>
		</tr>
		<tr>
			<th width="33%" scope="row" valign="middle">
			<label for="status">Aktiv</label></th>
			<td width="67%">
				{if $THECATONE->cat_is_active eq '1'}
					<input name="status" id="status" type="checkbox" checked="checked" value="1"/>
				{else}
					<input name="status" id="status" type="checkbox" value="1"/>
				{/if}
			</td>
		</tr>
	</table>
	<p class="submit" align = "right">
		<input type="image" name="submit" src="../view/admin/images/object_save.png" value="" />
	</p>
</form>
</div>